package Demo2;

import java.lang.reflect.Constructor;

public class T2 {
    public static void main(String[] args) throws ClassNotFoundException {

            Class c1 = Class.forName("Demo2.Student");
//            2.获取构造方法
        Constructor[] constructors = c1.getConstructors();
        for (Constructor constructor:constructors){
            System.out.println(constructor);
        }
    }
}
